package com.TwinBlade.PicturePassword;

import android.app.Activity;
import android.content.ComponentName;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.pm.PackageManager;
import android.preference.PreferenceManager;

public class HomeLauncher extends Activity
{
  public void onResume()
  {
    String str = PreferenceManager.getDefaultSharedPreferences(this).getString("HomeLauncher", "");
    if (bl.b())
      finish();
    while (true)
    {
      super.onResume();
      return;
      if (Utilities.a)
      {
        if (Utilities.a(true, true))
        {
          Intent localIntent3 = new Intent(this, AService.class);
          localIntent3.putExtra("OnBoot", true);
          startService(localIntent3);
        }
        Utilities.a = false;
      }
      else if (str != "")
      {
        try
        {
          Intent localIntent1 = new Intent("android.intent.action.MAIN");
          localIntent1.setComponent(ComponentName.unflattenFromString(str));
          localIntent1.addCategory("android.intent.category.HOME");
          localIntent1.setFlags(8388608);
          startActivity(localIntent1);
          overridePendingTransition(2130968576, 2130968577);
        }
        catch (Exception localException1)
        {
          try
          {
            Intent localIntent2 = getPackageManager().getLaunchIntentForPackage(ComponentName.unflattenFromString(str).getPackageName());
            localIntent2.addCategory("android.intent.category.HOME");
            localIntent2.setFlags(8388608);
            startActivity(localIntent2);
            overridePendingTransition(2130968576, 2130968577);
          }
          catch (Exception localException2)
          {
            startActivity(new Intent(this, HomeChooser.class));
          }
        }
      }
      else
      {
        startActivity(new Intent(this, HomeChooser.class));
      }
    }
  }
}

/* Location:           D:\Studium\Bachelorarbeit\BA Marcus Wobig\BA\BA\Decompiler\PicturePassword APK\Programm\PicturePassword_dex2jar.jar
 * Qualified Name:     com.TwinBlade.PicturePassword.HomeLauncher
 * JD-Core Version:    0.6.2
 */